﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Fast.Presentation.WinForms.Cruds
{
    public partial class FrmVendaCancelar : Form
    {
        public string Motivo;

        public FrmVendaCancelar()
        {
            InitializeComponent();
        }

        private void btnNaoCancelar_Click(object sender, EventArgs e)
        {
            Motivo = String.Empty;
            this.Close();
        }

        private void btnConfirmar_Click(object sender, EventArgs e)
        {
            Motivo = txtMotivo.Text;
            if (String.IsNullOrEmpty(Motivo))
                Utilidades.ExibirMensagem("Favor preencher o motivo do cancelamento.");
            else
                this.Close();
        }
    }
}
